import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class GesturePage extends StatelessWidget {
  final SystemUiOverlayStyle _style =
      SystemUiOverlayStyle(statusBarColor: Colors.transparent);

  @override
  Widget build(BuildContext context) {
    SystemChrome.setSystemUIOverlayStyle(_style);
    // TODO: implement build
    return MaterialApp(
      home: GestureStatefulWidget(),
      theme: ThemeData(primarySwatch: Colors.yellow),
    );
  }
}

class GestureStatefulWidget extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return _GestureState();
  }
}

class _GestureState extends State<StatefulWidget> {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text("Gesture Page"),
      ),
      body: GestureDetector(
        onTap: () => {debugPrint("onTap")},
        onDoubleTap: () => {debugPrint("onDoubleTap")},
        onLongPress: () => {debugPrint("onLongPress")},
        child: Center(
          child: Chip(label: Text("Gesture")),
        ),
      ),
    );
  }
}
